s = 'hello,world'

# 切片
print(s[-2::-2])

# 字符串反转
s2 = "123456789"
print(s2[-1:-10:-1])